import interfejs.MainWindowFrame;

import java.io.File;

import org.simpleframework.xml.Serializer;
import org.simpleframework.xml.convert.AnnotationStrategy;
import org.simpleframework.xml.convert.Registry;
import org.simpleframework.xml.convert.RegistryStrategy;
import org.simpleframework.xml.core.Persister;
import org.simpleframework.xml.strategy.Strategy;

import Model.Autor;
import Model.Autorzy;
import Model.Baza;
import Model.FakeConverter;
//import Model.MyMatcher;
import Model.Pojazdy;
import Model.Samochod;
import Model.Wlasciciel;
import Model.Wlasciciele;



public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		//Registry registry = new Registry();
		//Strategy strategy = new RegistryStrategy(registry);
		//Serializer serializer = new Persister(strategy);
		/*Strategy strategy = new AnnotationStrategy();
		Serializer serializer = new Persister(strategy);
		
		File source = new File("example.xml");

		try {
			//registry.bind(Wlasciciel.class, FakeConverter.class);
			Baza baza = serializer.read(Baza.class, source);
			baza.mapping();
			System.out.println(baza);
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
*/
		MainWindowFrame a = new MainWindowFrame();
		a.createGUI();
	}
}


